|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectAmigo
The class that interacts with the physical Amigo. This class will load a library on which it can perform some basic operations for controlling a robot. Implement the getCameraValue method in a subclass to get a fully functional robot! [BTN][SdJ]
| Constructor Summary | |
Amigo()
Default constructor. |
|
| Method Summary | |
void |
connect()
Connect the robot. |
void |
disconnect()
Disconnect the robot. |
abstract RADataType |
getCameraValue()
Implement this method for camera operation to work. |
java.lang.String[] |
getSensorIDs()
Return the sensor id's in use by the robot. |
RADataType |
getSensorValue(java.lang.String sensor_id)
Return the sensor value of the sensor indicated with the id specified. |
void |
initRobot()
The init methods are used to create the robot on the server. |
void |
initRobot(int maxSpeed)
The init methods are used to create the robot on the server. |
void |
robotGo(double speed,
double angle)
Command the robot to go somewhere! |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Amigo()
| Method Detail |
public final void initRobot()
public final void initRobot(int maxSpeed)
public final void connect()
connect in interface RARobotInterfacepublic final void disconnect()
disconnect in interface RARobotInterface
public final void robotGo(double speed,
double angle)
robotGo in interface RARobotInterfacepublic final java.lang.String[] getSensorIDs()
getSensorIDs in interface RARobotInterface
public final RADataType getSensorValue(java.lang.String sensor_id)
throws RAException
getSensorValue in interface RARobotInterfaceRAException
public abstract RADataType getCameraValue()
throws RAException
RAException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||